<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>LinearMeter.setMeter</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1"><a href="LinearMeter.htm">LinearMeter</a>.<wbr>setMeter</p>
<hr class="separator">
<p class="heading2a">Usage</p>
<div class="content">
public void setMeter(int leftX, int topY, int width, int height [, int axisPos [, boolean isReversed ]])
</div>
<p class="heading2">Description</p>
<div class="content">
Sets the orientation and position of the meter plot area.<br><br>
The plot area is a rectangular region of the linear meter. The meter scale (the labels showing the values) will be on one external side of the plot area (say on the left side). The pointer start on the opposite side and points towards the meter scale.<br><br>
This method defines the position and size of the rectangular region, as well as which side the meter scale is on. If the scale is on the left or right side, the meter is assumed to be a horizontal linear meter. If the scale is on the top or bottom side, the meter is assumed to be a vertical linear meter.
</div>
<p class="heading2">Arguments</p>
<div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Argument</th><th width="19%">Default</th><th>Description</th>
</tr>
<tr>
<td>leftX</td><td>(Mandatory)</td><td>The x-coordinate of the top-left corner of the meter plot area.</td></tr><tr><td>topY</td><td>(Mandatory)</td><td>The y-coordinate of the top-left corner of the meter plot area.</td></tr><tr><td>width</td><td>(Mandatory)</td><td>The horizontal width of the meter plot area.</td></tr><tr><td>height</td><td>(Mandatory)</td><td>The vertical height of the meter plot area.</td></tr><tr><td>axisPos</td><td><a href="Chart.Left.htm">Left</a></td><td>The position of the meter scale. The scale should be on one of the 4 sides of the plot area border, specified by <a href="Chart.Left.htm">Left</a>, <a href="Chart.Top.htm">Top</a>, <a href="Chart.Right.htm">Right</a> and <a href="Chart.Bottom.htm">Bottom</a>.</td></tr><tr><td>isReversed</td><td>false</td><td>By default, if the meter is horizontal, the meter scale will run from left to right. If the meter is vertical, the meter scale will run from bottom to top. If this argument is set to true, the meter scale will be reversed.</td>
</tr>
</table>
</div>
</div>
<p class="heading2">Return Value</p>
<div class="content">
None
</div>
<br><hr class="separator">
<div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
